USE [JCYDB]
GO

/****** Object:  Table [dbo].[T_Announce_Receiver]    Script Date: 05/02/2012 20:34:04 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[T_Announce_Receiver](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[AnnounceId] [int] NULL,
	[ReceiverUserId] [int] NULL,
	[ReceiverUserName] [varchar](50) NULL,
	[Status] [varchar](10) NULL,
	[VERSION_NO] [int] NOT NULL,
	[TRANSACTION_ID] [varchar](50) NOT NULL,
	[CREATED_BY] [varchar](50) NOT NULL,
	[CREATED_TIME] [datetime] NOT NULL,
	[LAST_UPDATED_BY] [varchar](50) NULL,
	[LAST_UPDATED_TIME] [datetime] NULL,
 CONSTRAINT [PK_T_Announce_Receiver] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[T_Announce_Receiver]  WITH CHECK ADD  CONSTRAINT [FK_T_Announce_Receiver_T_Announce] FOREIGN KEY([AnnounceId])
REFERENCES [dbo].[T_Announce] ([ID])
GO

ALTER TABLE [dbo].[T_Announce_Receiver] CHECK CONSTRAINT [FK_T_Announce_Receiver_T_Announce]
GO

